<template>
  <div class="body1">
    <Navigation></Navigation>
    <div class="com1">
      <textarea class="com2" placeholder="您想说些什么"></textarea>
      <button type="button" class="com3">评论</button>

      <div class="block">
        <el-timeline>
          <el-timeline-item timestamp="2018/4/12" placement="top">
            <el-card>
              <h4>更新 Github 模板</h4>
              <p>王小虎 提交于 2018/4/12 20:46</p>
            </el-card>
          </el-timeline-item>
          <el-timeline-item timestamp="2018/4/3" placement="top">
            <el-card>
              <h4>更新 Github 模板</h4>
              <p>王小虎 提交于 2018/4/3 20:46</p>
            </el-card>
          </el-timeline-item>
          <el-timeline-item timestamp="2018/4/2" placement="top">
            <el-card>
              <h4>更新 Github 模板</h4>
              <p>王小虎 提交于 2018/4/2 20:46</p>
            </el-card>
          </el-timeline-item>
        </el-timeline>
      </div>
    </div>
  </div>
</template>

<script>
import Navigation from "./Navigation.vue";
export default {
  name: "comment",
  components: { Navigation },
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}
.body1 {
  background-image: url(../assets/1.jpg);
  width: 100%;
  height: 1000px;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  height: 80%;
}
.com1 {
  width: 90%;
  height: 100%;
  background-color: #eff2fb;
  position: absolute;
  top: 15%;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  flex-wrap: wrap;
}
.com2 {
  width: 90%;
  height: 20%;
  outline: none;
  position: relative;
  top: 5%;
  font-size: 20px;
}
.com3 {
  width: 10%;
  height: 5%;
  background-color: #007fe6;
  position: relative;
  left: 38%;
  bottom: -10%;
  border-radius: 10px;
}
.el-timeline {
  margin: 0;
  font-size: 14px;
  list-style: none;
  width: 90%;
  /* margin-top: -8%; */
}
</style>
>
